package com.lening.collect.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_collect")
@ApiModel(value="Collect对象", description="")
public class Collect implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "与小区关联的id")
    private Integer rId;


    @ApiModelProperty(value = "项目名称")
    private String name;

    @ApiModelProperty(value = "类型外键")
    private Integer tId;
    

    @ApiModelProperty(value = "计费方式")
    private String charge;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "总价格")
    private BigDecimal prices;

    @ApiModelProperty(value = "账单周期")
    private Integer period;

    @ApiModelProperty(value = "违约金率(千分)")
    private Integer dedit;

    @ApiModelProperty(value = "违约起算天数")
    private Integer deditTime;
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "违约执行日期")
    @TableField("execute_time")
    private LocalDateTime executeTime;

    @ApiModelProperty(value = "是否支持优惠券")
    private Integer isDiscount;

    @ApiModelProperty(value = "享受折扣(百分)")
    private Integer discount;

    @ApiModelProperty(value = "新建日期")
    private LocalDateTime newDate;

    @ApiModelProperty(value = "逻辑删除 1：不删除0：删除")
    private Integer isDelete;
    @ApiModelProperty(value = "备注")
    private String comment;

    @ApiModelProperty(value = "状态 1：启用0：禁用")
    private Integer status;


}
